# -*- coding:utf-8 -*-
# vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8:


def create_zone(client, name):
    data = {'name': name}
    return client.create_zone(data)


def query_zone(client):
    return client.query_zone()


def query_zone_by_uuid(client, uuid):
    data = {'conditions': [{'name': 'uuid',
                            'op': '=',
                            'value': uuid}]}
    return client.query_zone(data)


def delete_zone(client, uuid):
    data = {'uuid': uuid}
    return client.delete_zone(data)
